package com.qn.analyze.controlle;

import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.dev33.satoken.annotation.SaIgnore;
import com.qn.analyze.entity.LanguageMetrics;
import com.qn.analyze.service.LanguageMetricsService;
import com.qn.analyze.vo.LanguageMetricsQueryVo;
import com.qn.common.base.BaseControlle;
import com.qn.common.base.model.ResponseRows;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@Tag(name = "系统-浏览器语音")
@SaCheckLogin
@RestController
@RequestMapping("language/metrics")
public class LanguageMetricsController extends BaseControlle {
    @DubboReference(version = "1.0.0")
    private LanguageMetricsService service;
    @Operation(summary ="浏览器首选语言-列表")
    @PostMapping("getLanguageList")
    @SaIgnore
    public ResponseRows<LanguageMetrics> getContinentList(@RequestBody LanguageMetricsQueryVo where){
        return successR(service.getLanguageList(where));
    }

}